home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / web / noweb / contrib / norman / numarkup / Makefile < prev    next >
Makefile  |  1995-02-24  |  678b  |  34 lines

  1. LIB=/dev/null    # to be overridden
  2. CC = cc
  3. CFLAGS = -O
  4.  
  5. TARGET = numarkup
  6. OBJS = main.o pass1.o latex.o input.o scraps.o names.o arena.o global.o
  7.  
  8. .SUFFIXES: .nw
  9. .nw.c: ;    notangle -R"$@"'*' -L $< | cpif $@
  10. .nw.h: ;    notangle -R"$@" $< | cpif $@
  11.  
  12. all: 
  13.     noweb -t numarkup.nw
  14.     make $(TARGET)
  15.  
  16. install:
  17.     noweb -t numarkup.nw
  18.     make $(TARGET)
  19.     strip $(TARGET)
  20.     cp $(TARGET) $(LIB)
  21.  
  22. source: main.c pass1.c latex.c input.c scraps.c names.c arena.c global.c
  23.  
  24. clean:
  25.     rm -f *.o *.c *.h *.tex *.log *.dvi *~ *.blg $(TARGET) *.html *~
  26.  
  27. $(OBJS): global.h
  28.  
  29. $(TARGET): $(OBJS)
  30.     $(CC) -o $(TARGET) $(OBJS)
  31.  
  32. numarkup.html: numarkup.nw
  33.     noweave -filter l2h -html -index numarkup.nw > numarkup.html
  34.